const Index = ({ database, table_name, data, e, tableRef }) => {
	e.stopPropagation()
	window.$formModalRef().open({
		modal:{
			title 	: <span>修改字段【<b className='c3 ar'>{data.Field}</b>】默认值</span>,
			width 	: '35%',
		},
		form: {
			labelWidth: 's4',
			// api: 'mysql/structure/mod_default',
			api: 'mysql/structure/mod_field',
			way:'put',
			infoApi : false,
			param: { database, table_name, ...data, change:false},
			data: [
				{ label: '字段名', name:'Field', disabled:1 },
				{ label: '数据类型', name:'Type', disabled:1 },
				{ label: '默认值', name:'Default' },
			],
			onOk : () => {
				window.$.ref(tableRef).tableRef().search({ scroll:0 })
			}
		}
	})
}
export default Index